package com.service;

import com.dao.AdminDao;
import com.dto.BaseDto;
import com.entity.Admin;
import com.page.PageInfo;

import javax.annotation.Resource;
import java.util.List;

public interface AdminService {

    public Admin getByAdid(String adid);
    public BaseDto<Admin> getAll();
    public BaseDto<Admin> getAllByPage(PageInfo pageInfo);

    public BaseDto<Admin> searchNameByPage(PageInfo pageInfo,String adname);

    /**
     * 根据主键查询
     * @param adid
     * @return
     */
    public BaseDto getAdminByAdid(String adid);

    /**
     * 添加一个实体
     * @param admin
     * @return
     */
    public BaseDto addAdmin(Admin admin);
    /**
     * 修改实体
     */
    public BaseDto updateAdmin(Admin admin);
    public BaseDto updateAdminByExample();

    /**
     * 删除一个实体
     * @param adid
     * @return
     */
    public BaseDto deleteAdminByPrimayKey(String adid);

    /**
     * 删除实体根据示例
     * @return
     */
    public BaseDto deleteAdminByExample();

    public void test(Integer test1,String test2);
}
